package br.com.duprat.view;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JLabel;
import java.awt.Font;
import javax.swing.JTextField;
import javax.swing.JRadioButton;
import javax.swing.JTable;
import javax.swing.JButton;
import javax.swing.JSeparator;
import java.awt.Component;
import javax.swing.Box;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;



public class CadCliente {

	private JFrame frame;
	private JTextField txtCodigo;
	private JRadioButton rdbtnUFPE;
	private JRadioButton rdbtnTerceiro;
	private JLabel lblCpfcnpj;
	private JTextField txtCPF;
	private JLabel lblNome;
	private JTextField txtNome;
	private JLabel lblEmail;
	private JTextField txtEmail;
	private JLabel lblEndereo;
	private JTextField txtEndereco;
	private JLabel lblTelefone;
	private JTextField txtTel11;
	private JTextField txtTel12;
	private JLabel lblTelefone_1;
	private JTextField txtTel21;
	private JTextField txtTel22;
	private JLabel lblltimosTrabalhos;
	private JTable table;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					CadCliente window = new CadCliente();
					window.frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the application.
	 */
	public CadCliente() {
		initialize();
	}

	/**
	 * Initialize the contents of the frame.
	 */
	private void initialize() {
		frame = new JFrame();
		frame.setBounds(100, 100, 809, 516);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.getContentPane().setLayout(null);
		
		JLabel lblCdigo = new JLabel("C\u00F3digo:");
		lblCdigo.setFont(new Font("Tahoma", Font.PLAIN, 13));
		lblCdigo.setBounds(32, 100, 56, 14);
		frame.getContentPane().add(lblCdigo);
		
		txtCodigo = new JTextField();
		txtCodigo.setBounds(86, 98, 86, 20);
		frame.getContentPane().add(txtCodigo);
		txtCodigo.setColumns(10);
		
		rdbtnUFPE = new JRadioButton("UFPE");
		rdbtnUFPE.setBounds(223, 97, 68, 23);
		frame.getContentPane().add(rdbtnUFPE);
		
		rdbtnTerceiro = new JRadioButton("Terceiro");
		rdbtnTerceiro.setBounds(223, 123, 109, 23);
		frame.getContentPane().add(rdbtnTerceiro);
		
		lblCpfcnpj = new JLabel("CPF/CNPJ:");
		lblCpfcnpj.setFont(new Font("Tahoma", Font.PLAIN, 13));
		lblCpfcnpj.setBounds(20, 127, 68, 14);
		frame.getContentPane().add(lblCpfcnpj);
		
		txtCPF = new JTextField();
		txtCPF.setColumns(10);
		txtCPF.setBounds(86, 125, 86, 20);
		frame.getContentPane().add(txtCPF);
		
		lblNome = new JLabel("Nome:");
		lblNome.setFont(new Font("Tahoma", Font.PLAIN, 13));
		lblNome.setBounds(42, 167, 46, 14);
		frame.getContentPane().add(lblNome);
		
		txtNome = new JTextField();
		txtNome.setColumns(10);
		txtNome.setBounds(86, 165, 225, 20);
		frame.getContentPane().add(txtNome);
		
		lblEmail = new JLabel("Email:");
		lblEmail.setFont(new Font("Tahoma", Font.PLAIN, 13));
		lblEmail.setBounds(42, 194, 46, 14);
		frame.getContentPane().add(lblEmail);
		
		txtEmail = new JTextField();
		txtEmail.setColumns(10);
		txtEmail.setBounds(86, 192, 225, 20);
		frame.getContentPane().add(txtEmail);
		
		lblEndereo = new JLabel("Endere\u00E7o:");
		lblEndereo.setFont(new Font("Tahoma", Font.PLAIN, 13));
		lblEndereo.setBounds(20, 221, 68, 14);
		frame.getContentPane().add(lblEndereo);
		
		txtEndereco = new JTextField();
		txtEndereco.setColumns(10);
		txtEndereco.setBounds(86, 219, 225, 20);
		frame.getContentPane().add(txtEndereco);
		
		lblTelefone = new JLabel("Telefone 1:");
		lblTelefone.setFont(new Font("Tahoma", Font.PLAIN, 13));
		lblTelefone.setBounds(10, 263, 68, 14);
		frame.getContentPane().add(lblTelefone);
		
		txtTel11 = new JTextField();
		txtTel11.setBounds(86, 261, 35, 20);
		frame.getContentPane().add(txtTel11);
		txtTel11.setColumns(10);
		
		txtTel12 = new JTextField();
		txtTel12.setBounds(131, 261, 126, 20);
		frame.getContentPane().add(txtTel12);
		txtTel12.setColumns(10);
		
		lblTelefone_1 = new JLabel("Telefone 2:");
		lblTelefone_1.setFont(new Font("Tahoma", Font.PLAIN, 13));
		lblTelefone_1.setBounds(10, 290, 68, 14);
		frame.getContentPane().add(lblTelefone_1);
		
		txtTel21 = new JTextField();
		txtTel21.setColumns(10);
		txtTel21.setBounds(86, 288, 35, 20);
		frame.getContentPane().add(txtTel21);
		
		txtTel22 = new JTextField();
		txtTel22.setColumns(10);
		txtTel22.setBounds(131, 288, 126, 20);
		frame.getContentPane().add(txtTel22);
		
		lblltimosTrabalhos = new JLabel("\u00DAltimos Trabalhos");
		lblltimosTrabalhos.setFont(new Font("Tahoma", Font.BOLD, 14));
		lblltimosTrabalhos.setBounds(360, 26, 157, 14);
		frame.getContentPane().add(lblltimosTrabalhos);
		
		table = new JTable();
		table.setBounds(360, 73, 423, 344);
		frame.getContentPane().add(table);
		
		JButton btnSlavar = new JButton("Salvar");
		btnSlavar.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				
			}
		});
		btnSlavar.setBounds(63, 345, 89, 23);
		frame.getContentPane().add(btnSlavar);
		
		JButton btnSair = new JButton("Sair");
		btnSair.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				
			}
		});
		btnSair.setBounds(202, 345, 89, 23);
		frame.getContentPane().add(btnSair);
		
		JButton btnAbrir = new JButton("Abrir");
		btnAbrir.setBounds(507, 428, 89, 23);
		frame.getContentPane().add(btnAbrir);
		
		JButton btnNovoTrabalho = new JButton("Novo Trabalho...");
		btnNovoTrabalho.setBounds(617, 428, 115, 23);
		frame.getContentPane().add(btnNovoTrabalho);
		
		JLabel lblCadastroDeClientes = new JLabel("Cadastro de Clientes");
		lblCadastroDeClientes.setFont(new Font("Tahoma", Font.BOLD, 14));
		lblCadastroDeClientes.setBounds(10, 11, 157, 14);
		frame.getContentPane().add(lblCadastroDeClientes);
		
		JSeparator separator = new JSeparator();
		separator.setBounds(333, 415, -202, -346);
		frame.getContentPane().add(separator);
	}
}
